package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户答题管理对象 user_answer_table
 * 
 * @author ruoyi
 * @date 2022-08-27
 */
public class UserAnswerTable extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    @Excel(name = "编号")
    private Long id;

    /** 用户编号 */
    @Excel(name = "用户编号")
    private Long userId;

    /** 题目编号 */
    @Excel(name = "题目编号")
    private Long topicId;

    /** 题目类型 */
    @Excel(name = "题目类型")
    private String topicType;

    /** 是否正确 */
    @Excel(name = "是否正确")
    private String topicCorrect;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setTopicId(Long topicId) 
    {
        this.topicId = topicId;
    }

    public Long getTopicId() 
    {
        return topicId;
    }
    public void setTopicType(String topicType) 
    {
        this.topicType = topicType;
    }

    public String getTopicType() 
    {
        return topicType;
    }
    public void setTopicCorrect(String topicCorrect) 
    {
        this.topicCorrect = topicCorrect;
    }

    public String getTopicCorrect() 
    {
        return topicCorrect;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("topicId", getTopicId())
            .append("topicType", getTopicType())
            .append("topicCorrect", getTopicCorrect())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
